FROM openjdk:8-alpine3.9
#作者信息
MAINTAINER lagoupiggirl Docker springboot "lagoupiggirl@lagou.com"
#修改源
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" >  /etc/apk/repositories && \
    echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories

#安裝需要的软件
RUN apk --update add curl bash tzdata && \
            rm -rf /var/cache/apk/*
#修改镜像为东八区时间
ENV TZ Asia/Shanghai
COPY agent/ /opt/skyagent/
COPY  edu-config-boot.jar app.jar
EXPOSE 8090
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT ["java","-Xmx512m","-javaagent:/opt/skyagent/skywalking-agent.jar","-Dskywalking.agent.service_name=edu-config-boot","-Dskywalking.collector.backend_service=192.168.31.129:11800","-jar","/app.jar"]
